﻿using System.Collections.Generic;

namespace QG.FrontDesk.Model
{
    public class PostName
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PostName()
        {
            this.Positioninfo = new HashSet<PositionInfo>();
            this.Positionsubscribe = new HashSet<PositionSubscribe>();
        }
        [System.ComponentModel.DataAnnotations.Key]
        public int PostNameId { get; set; }
        public string Name { get; set; }
        public int ClassId { get; set; }
        public bool Statu { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PositionInfo> Positioninfo { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PositionSubscribe> Positionsubscribe { get; set; }

    }
}
